package com.piece.core.web.interceptor;

import org.springframework.web.method.HandlerMethod;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 拦截器类钩子
 */
public interface InterceptorHook {

    String[] getInterceptor();

    void preHandle(HttpServletRequest request, HttpServletResponse response, HandlerMethod handler) throws Exception;

    void postHandle(HttpServletRequest request, HttpServletResponse response, HandlerMethod handler) throws Exception;

    void afterCompletion(HttpServletRequest request, HttpServletResponse response, HandlerMethod handler, Exception ex) throws Exception;

    void afterConcurrentHandlingStarted(HttpServletRequest request, HttpServletResponse response, HandlerMethod handler) throws Exception;
}
